package com.greatwqs.wmall.user.provider.model.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;

import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author wang-qingsong
 */
@Data
public class ChangePasswordDto {

    @JsonIgnore
    private Long userId;

    private String oldPassword;

    @Size(min = 8, max = 20, message = "{validation.ChangePasswordDto.newPassword.Size}")
    private String newPassword;
}
